﻿using System.Diagnostics.CodeAnalysis;

namespace ProxyServer.Extensions;

public static class EnumerableExtensions
{
    public static bool IsNullOrEmpty<T>([NotNullWhen(false)]this IEnumerable<T>? source)
    {
        return source == null || !source.Any();
    }
}
